-
Notifications
You must be signed in to change notification settings - Fork 281
refactor(api): adopt @octokit/types
#2525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
|
|
||
| export type NotificationThreadSubscription = | ||
| components['schemas']['thread-subscription']; | ||
| export type ListNotificationsForAuthenticatedUserResponse = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More explicit use of GitHub REST HTTP verb and path to its response types
Signed-off-by: Adam Setch <[email protected]>
| */ | ||
| export async function getHtmlUrl(url: Link, token: Token): Promise<string> { | ||
| try { | ||
| // TODO - Add explicit type for response shape |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a TODO which I intend to clean up via #2545
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
Signed-off-by: Adam Setch <[email protected]>
|



Migrate from the lower-level OAS types from https://github.com/octokit/openapi-types.ts to the REST endpoint types from https://github.com/octokit/types.ts.